package com.sbl;

import com.sbl.service.IAccountService;
import com.sbl.service.IAccountServiceTXXML;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 *       通过： 系统提供的事务管理器
 */
@RunWith(SpringJUnit4ClassRunner.class)//测试环境整合Spring
@ContextConfiguration(locations = "classpath:bean_xml_tx.xml")
public class AccountServiceTXXML {

    @Autowired
    private IAccountServiceTXXML as;

    @Test
    public void testTransfer(){
        as.transfer("ccc","ddd",100f);
    }


}
